package com.woniuxy.client;

import com.woniuxy.domain.Product;
import com.woniuxy.dto.JsonResultDto;
import com.woniuxy.param.ProductParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("ProductService")
@RequestMapping("/product")
public interface RoomClientProduct {
    @GetMapping("/selectProductByRid")
    public List<Product> selectProductByRid(@RequestParam("rid") int rid);
    @PostMapping("/insertProduct")
    public JsonResultDto insertProduct(@SpringQueryMap ProductParam productParam);
}
